package org.smile.design.brige;

public class Application {
    public static void main(String[] args) {
        PrototypeShip ship1 = new PrototypeShip();
        ship1.communicate();
        ship1.navigate();
        ship1.light();

        System.out.println("========================");
        Ship bigShip = new StartLinkNavigateEquipment(new SamsungCommunicateEquipment(new ZShip()));
        System.out.println(bigShip.listEquipments());
        for (ShipEquipment shipEquipment: bigShip.getShipEquipment()){
            shipEquipment.execute();
        }

    }
}
